<!DOCTYPE html>
<html  style="width: 100%;height: 100%">
<head>
    <meta charset="utf-8">
    <title>《威利邀请童心未泯的你一起登陆》</title>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="full-screen" content="yes"/>
    <meta name="screen-orientation" content="portrait"/>
    <meta name="viewport" content="target-densitydpi=high-dpi,width=device-width"/>
    <meta name="x5-fullscreen" content="true"/>
    <meta http-equiv="Access-Control-Allow-Origin" content="*"/>
    <meta name="360-fullscreen" content="true"/>
    <style>
        body{
            width: 100%;
            margin: 0px;
            padding: 0px;
            height: 100%;
        }
        body, canvas, div {
            -moz-user-select: none;
            -webkit-user-select: none;
            -ms-user-select: none;
            -khtml-user-select: none;
            /*-webkit-tap-highlight-color: rgba(0, 0, 0, 0);*/
        }

    </style>



</head>

<body style="padding:0; margin: 0;background-color: #0B0F24;">
    <article id="main">
<img src="http://apps.sinosofts.cn/birthday/assets/images/cangpian1.png" style="position: absolute; top: 0px; left: 0px; width: 300px; z-index: -1; opacity: 0;">
    </article>
<script type="text/javascript" src="cocos2d-js-v3.13.js" charset="UTF-8"></script>
<script>
//    if(window.navigator.userAgent.indexOf("MicroMessenger") == -1){
//        window.location.href="http://devcon.cocos.com/";
//    }

var playMusic = function (status) {
    var audio = document.getElementById("myAudio");
    if (status) {
        audio.currentTime = 0;
        audio.play();

        if (audio.paused) {
            wx.config({
                // 配置信息, 即使不正确也能使用 wx.ready
                debug: false,
                appId: '',
                timestamp: 1,
                nonceStr: '',
                signature: '',
                jsApiList: []
            });
            wx.ready(function() {
                var au = document.getElementById('myAudio');
                au.play();
                //au.pause();
            });
        }

    } else {
        if (!audio.paused) {
            audio.pause();
        }
    }
}

</script>
<canvas id="gameCanvas" width="640" height="831"></canvas>

<div class="hide">
    <audio id="myAudio" src="res/bg.mp3" preload="true" loop="true" oncanplay=""></audio>
</div>
<script>//playMusic(true);</script>

<script src="main.js"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>
   /**
    // 方法1: 现在微信官方已经推出了微信JS-SDK, 最好还是不要使用"野生"方式, 因为不知道什么时候就可以不能用了!
    // http://mp.weixin.qq.com/wiki/7/aaa137b55fb2e0456bf8dd9148dd613f.html
    // 通过config接口注入权限验证配置后, 在 ready 中 play 一下 audio
    wx.config({
        // 配置信息, 即使不正确也能使用 wx.ready
        debug: false,
        appId: '',
        timestamp: 1,
        nonceStr: '',
        signature: '',
        jsApiList: []
    });
    wx.ready(function() {
        //var au = document.getElementById('myAudio');
        //au.play();
        //au.pause();
    });

    wx.onMenuShareTimeline({
        title: 'test', // 分享标题
        link: 'http://dubox.oschina.io/h5feicui/', // 分享链接
        imgUrl: 'http://127.0.0.1:8081/res/loading.png', // 分享图标
        success: function () {
            // 用户确认分享后执行的回调函数
        },
        cancel: function () {
            // 用户取消分享后执行的回调函数
        }
    });
    **/
</script>

<div style="display:none;">
    <script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1261655395'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s95.cnzz.com/z_stat.php%3Fid%3D1261655395%26show%3Dpic1' type='text/javascript'%3E%3C/script%3E"));</script>
</div>

</body>
</html>